package stock_dao;

import java.sql.SQLException;
import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import stock_vo.CustomerVO;
import stock_vo.ItemVO;

public class CustomerDaoImpl extends SqlMapClientDaoSupport implements CustomerDao{

	@Override
	public void insertCustomer(CustomerVO vo) throws SQLException {
		this.getSqlMapClient().insert("customer.insertCustomer",vo);
	}

	@Override
	public List selectCustomer() throws SQLException {
		return this.getSqlMapClient().queryForList("customer.selectCustomer");
	}

	@Override
	public void deleteCustomer(String cus_number) throws SQLException {
		this.getSqlMapClient().delete("customer.deleteCustomer",cus_number);
	}
}